<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试js函数跨对象set</title>
    <script src="测试js函数跨文件set.js"></script>
</head>
<body>
<script type="text/javascript">
    var k={s:"1"};
    f(k);
    alert(JSON.stringify(k))// {"s":"2"}

</script>
</body>
</html>